<?php $this->load->view("general/header");?>
<div id="order_detail" class="page_">
    <div class="form">            	
        <div class="form_header"><a href="<?php echo site_url("admin/manage_admin");?>">Admin List</a> &raquo; Admin Detail</div>
        <div class="content_data">
        
        	<div class="title">Username</div>
            <div class="input"><?php echo $user_detail['username'];?></div>
            <div class="clear"></div>
            
            <div class="title">Name</div>
            <div class="input"><?php echo $user_detail['name'];?></div>
            <div class="clear"></div>
            
            <div class="title">Email</div>
            <div class="input"><?php echo $user_detail['email'];?></div>
            <div class="clear"></div>
            
            <div class="title">Phone</div>
            <div class="input"><?php echo $user_detail['phone'];?></div>
            <div class="clear"></div>
            
            <div class="title">Address</div>
            <div class="input"><?php echo $user_detail['address'];?></div>
            <div class="clear"></div>
            
            <div class="title">Last Logged In</div>
            <div class="input"><?php echo $user_detail['last_logged_in'];?></div>
            <div class="clear"></div>
           	
            <div class="title">Member Since</div>
            <div class="input"><?php echo $user_detail['member_since'];?></div>
            <div class="clear"></div>
            
            <div class="title"></div>
            <div class="input"><a href="<?php echo base_url();?>admin/manage_admin/delete/<?php echo $user_detail['user_id'];?>" onclick="return confirm('Are you sure want to delete this admin?'); " class="button_red">delete</a></div>
            <div class="clear"></div>
        </div>
        
        <div class="form_header">Transaction Followed By This Admin</div>
        <div id="div_history_transaction" class="content_data_history_trans">
        	<?php if(count($transaction_followed_list) == 0){ ?>
            	<div class="col1 title">No Followup History</div>
            <?php }else{ ?>
                <div class="col1 title">Trans. Code</div>
                <div class="col2 title">Product Name</div>
                <div class="col3 title">Price</div>
                <div class="col4 title">Entry Date</div>
                <div class="col5 title">Last Followup</div>
                <div class="clear"></div>
                
                <!-- perulangan -->
				<?php
				$i = 0;
                foreach($transaction_followed_list as $list){ 
					$i++;
				?>
                    <div class="<?php echo ($i%2 == 1)?"odd":"even";?>">
                        <div class="col1"><?php echo $list['transaction_code'];?></div>
                        <div class="col2"><?php echo $list['name'];?></div>
                        <div class="col3"><?php echo $list['price'];?></div>
                        <div class="col4"><?php echo $list['entry_date'];?></div>
                        <div class="col5"><?php echo $list['last_followup'];?></div>
                        <div class="col6"><a href="<?php echo base_url();?>admin/order/detail/<?php echo $list['transaction_id'];?>" class="button_red">detail</a></div>
                    </div>
                <?php } ?>
                <!-- AKHIR perulangan -->
                
                <div class="clear"></div>
                <div class="paging"><a href="">1</a><b>2</b></div>
            <?php } ?>
        </div>
    </div>
</div>
<?php $this->load->view("general/footer");?>